﻿using STT.Layer.Connection;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace STT.Profile.UserControlsGV
{
    public partial class UcThongBaoGV : System.Web.UI.UserControl
    {
        ToolBox tb = new ToolBox();
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadTTGV();
        }
        private void LoadTTGV()
        {
            DataTable dt = tb.GetDataTable("TbTinTuc_GVSelectAll");
            cpl.PageSize = 12;
            cpl.DataSource = dt.DefaultView;
            cpl.BindToControl = ddltb;
            ddltb.DataSource = cpl.DataSourcePaged;
            ddltb.DataBind();
        }
    }
}